package com.zbf.并发包;

import java.util.concurrent.CountDownLatch;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/16  15:51
 * 描述:
 */
public class MyThread extends Thread {

    private CountDownLatch countDownLatch;

    public MyThread(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }

    @Override
    public void run() {

        System.out.println("======人来了====哈哈=");
        countDownLatch.countDown();

    }
}
